package com.design.flyweight.game;

// 护甲类，实现了装备接口
class Armor implements Equipment {
    private String name;

    public Armor(String name) {
        this.name = name;
    }

    @Override
    public void use(Player player) {
        System.out.println(player.getName() + " is wearing " + name);
    }
}
